public class 面向对象_2_实例一个学生 {
    int id;
    String name;
    String course;//课
    int age;
    public void cat_xs(){
        System.out.println(id+name+age+course);
    }
    public void like(String ai){
        System.out.println("爱号是"+ai);
    }



    public static void main(String[] args) {
        面向对象_2_实例一个学生 xs = new 面向对象_2_实例一个学生();
        xs.age = 18;
        xs.course = "JAVA";
        xs.id = 1;
        xs.name = "张园";
        xs.cat_xs();
        xs.like("打游戏");

        面向对象_2_实例一个学生 xs2 = new 面向对象_2_实例一个学生();
        xs2.age = 19;
        xs2.course = "python";
        xs2.id = 2;
        xs2.name = "刘凯";
        xs2.cat_xs();
        xs2.like("玩亚索");
    }


}
